package com.sgl.retrofitdemo.net.interactor;

import com.sgl.retrofitdemo.net.entity.request.UserInfo;
import com.sgl.retrofitdemo.net.entity.respons.UserInfoEntity;
import com.sgl.retrofitdemo.net.model.UserDataModel;

import rx.Observable;

/**
 * Created by sunqiyong on 2016/11/13.
 */

public class UserInfoPostUseCase extends UseCase<UserInfoEntity>{
    private UserInfo mUserInfo;

    public void setmUserInfo(UserInfo mUserInfo) {
        this.mUserInfo = mUserInfo;
    }

    @Override
    protected Observable<UserInfoEntity> buildUseCaseObservable() {
        return UserDataModel.getInstance().testPost(mUserInfo);
    }
}
